# 7.10
name_prompt = "What's your name? "
place_prompt = "If you could visit one place in the world," \
"where would you go? "
repeat_prompt = "Would you like to let someone else repond? (yes/no)"

respones = {}
active = True
while active:
    name = input(name_prompt)
    place = input(place_prompt)

    # 将回答存储在字典中
    respones[name] = place

    repeat = input(repeat_prompt)

    if repeat == 'no':
        active = False
print("\n--Poll Results--")
for name, place in respones.items():
    print(f"{name.title()} would like to go {place.title()}")
    